package com.aaa.controller.scl;

import com.aaa.entity.activity_order.scl.Goods;
import com.aaa.service.scl.GoodMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * fileName:GoodsMessageController
 * description:
 * author:scl
 * createTime:2020/1/12 0012 13:56
 * version:1.0.0
 */

@RestController
@RequestMapping("goods")
public class GoodsMessageController {

    @Autowired
    private GoodMessageService goodMessageService;

    @RequestMapping("list")
    public Goods list(){
        System.out.println(goodMessageService.getList());
        return goodMessageService.getList();
    }
}
